import request from '@/utils/request'

// 创建商品详情
export function createCheckDataExtend(data) {
  return request({
    url: '/market/check-data-extend/create',
    method: 'post',
    data: data
  })
}

// 更新商品详情
export function updateCheckDataExtend(data) {
  return request({
    url: '/market/check-data-extend/update',
    method: 'put',
    data: data
  })
}

// 删除商品详情
export function deleteCheckDataExtend(id) {
  return request({
    url: '/market/check-data-extend/delete?id=' + id,
    method: 'delete'
  })
}

// 获得商品详情
export function getCheckDataExtend(id) {
  return request({
    url: '/market/check-data-extend/get?id=' + id,
    method: 'get'
  })
}

// 获得商品详情分页
export function getCheckDataExtendPage(params) {
  return request({
    url: '/market/check-data-extend/page',
    method: 'get',
    params
  })
}
// 导出商品详情 Excel
export function exportCheckDataExtendExcel(params) {
  return request({
    url: '/market/check-data-extend/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}